package com.ts.common.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;



@Component
@Slf4j
public class SmsUtils {
    @Autowired
    private  RabbitTemplate rabbitTemplate;
    public  void send(String message) {
        log.debug(message);
        rabbitTemplate.convertAndSend(null,"sms-queue",message);
    }
}
